package com.euq.controller;

import com.euq.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/task")
public class TaskController {
    @Autowired
    private TaskService taskService;
    @GetMapping(value = "/list")
    public Object list(String name) {
        return taskService.list(name);
    }
}
